﻿using System.Linq;
using FacialClub.Models.Entities;

namespace FacialClub.Models.Interfaces
{
    /// <summary>
    /// Treatment Repository Interface
    /// </summary>
    public interface ITreatmentRepository
    {
        /// <summary>
        /// Get All Treatment
        /// </summary>
        /// <returns></returns>
        IQueryable<Treatment> FindAllTreatment();

        /// <summary>
        /// Get Treatment By Name
        /// </summary>
        /// <param name="strQuery"></param>
        /// <returns></returns>
        IQueryable<Treatment> FindTreatmentByName(string strQuery);

        /// <summary>
        /// Get Treatment By Id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Treatment GetTreatmentById(int id);

        /// <summary>
        /// Add Treatment in the Database
        /// </summary>
        /// <param name="treatment"></param>
        void Add(Treatment treatment);

        /// <summary>
        /// Delete Treatment from the Database
        /// </summary>
        /// <param name="treatment"></param>
        void Delete(Treatment treatment);

        /// <summary>
        /// Save record in the database
        /// </summary>
        void Save();
    }
}